<template>
  <footer class="footer" v-show="arr.length>0">
    <!-- 统计 -->
    <span class="todo-count"
      >合 计:<strong> {{ arr.length }} </strong></span
    >
    <!-- 清空 -->
    <button class="clear-completed" @click="remove">清空任务</button>
  </footer>
</template>

<script>
export default {
  props: {
    arr: {
      type: Array,
      required: true,
    },
  },
  methods:{
    remove(){
        this.$emit('removeArr',[])
    }
  }
};
</script>

<style>
</style>